package com.youyi.yyviewsdklibrary.Dialog.animator;

import android.view.View;

public class EmptyAnimator extends PopupAnimator {
    public EmptyAnimator(View view, int i) {
        super(view, i);
    }

    @Override // com.youyi.yyviewsdklibrary.Dialog.animator.PopupAnimator
    public void initAnimator() {
        this.targetView.setAlpha(0.0f);
    }

    @Override // com.youyi.yyviewsdklibrary.Dialog.animator.PopupAnimator
    public void animateShow() {
        this.targetView.animate().alpha(1.0f).setDuration((long) this.animationDuration).withLayer().start();
    }

    @Override // com.youyi.yyviewsdklibrary.Dialog.animator.PopupAnimator
    public void animateDismiss() {
        if (!this.animating) {
            observerAnimator(this.targetView.animate().alpha(0.0f).setDuration((long) this.animationDuration).withLayer()).start();
        }
    }
}
